<div class="form wide">

<?php $form=$this->beginWidget('CmsWidgetForm', array(
    'formParams'=>$formParams,
    'formLayoutParams'=>$formLayoutParams,
));?>

    <?php echo $form->errorSummary($model); ?>

    <?php if (! $model->IsNewRecord) echo $form->hiddenField($model, "id") ; ?>
    <div class="row">
        <?php echo $form->labelEx($model,'title'); ?>
        <?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'title'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'url'); ?>
        <?php echo $form->textField($model,'url',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'url'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'type'); ?>
        <?php echo $form->textField($model,'type',array('size'=>20,'maxlength'=>20)); ?>
        <?php echo $form->error($model,'type'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'image'); ?>
        <?php $this->widget('Admin.components.FileWidget', array(
            'name'=>'FbMetadata[image]',
            'value'=>$model->image,
            'root'=>'/uploads',
            'showButtonRemove'=>false,
        )); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'site_name'); ?>
        <?php echo $form->textField($model,'site_name',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'site_name'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'description'); ?>
        <?php echo $form->textArea($model,'description',array('cols'=>70,'rows'=>5)); ?>
        <?php echo $form->error($model,'description'); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->